@import './custom.less';

@header: header0;
.@{header} {
  height: 64px;
  background: @template-nav-bg-color;
  width: 100%;
  z-index: 970;
  box-shadow: 0 5px 8px fade(#000, 15);
  position: relative;
  top: 0;
  &_logo {
    display: inline-block;
    position: absolute;
    left: 4%;
    width: 150px;
    line-height: 64px;
    & img {
      vertical-align: middle;
      display: inline-block;
    }
    & a {
      display: block;
    }
  }
  &_nav {
    float: right;
    margin-right: 4%;
    line-height: 64px;
    position: relative;
    & ul li,ul .header0_nav_selscted{
      background: none!important;
    }
    & .ant-menu-horizontal {
      border-bottom-color: transparent;
    }
    & .ant-menu {
      background: transparent;
      color: @template-text-color-light;
      line-height: 62px;
      & li {
        float: left;
        text-align: center;
        width: 100px;
        background: rgb(64, 64, 64);
      }
    }
    & .ant-menu-horizontal > .ant-menu-item-active {
      color: @link-hover-color;
      border-bottom-color: @link-hover-color;
    }
  }
}

@media screen and (max-width: 767px) {
  .@{header} {
    &_logo {
      z-index: 101;
    }
    &_phone_nav {
      width: 16px;
      height: 14px;
      cursor: pointer;
      position: absolute;
      top: 0;
      bottom: 0;
      margin: auto;
      right: 20px;
      &_bar {
        position: relative;
        z-index: 100;
        em {
          display: block;
          width: 100%;
          height: 2px;
          background: #FFF;
          margin-top: 4px;
          transition: transform .3s @ease-in-out, opacity .3s @ease-in-out;
        }
        :first-child {
          margin-top: 0;
        }
      }
      &.open {
        .@{header}_phone_nav_bar {
          em {
            &:nth-child(1) {
              transform: translateY(6px) rotate(45deg);
            }
            &:nth-child(2) {
              opacity: 0;
            }
            &:nth-child(3) {
              transform: translateY(-6px) rotate(-45deg);
            }
          }
        }
        .@{header}_phone_nav_text {
          opacity: 1;
          pointer-events: auto;
          transition-timing-function: @ease-out;
        }
      }

      &_text {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        /* height: 100%; */
        padding-top: 64px;
        opacity: 0;
        transition: opacity .3s @ease-in;
        /* pointer-events: none; */
        z-index: 100;
        background: #404040;
        .ant-menu-item-selected {
          border: none;
        }
      }
    }
  }
}
@media screen and(max-width: 568px) {
  .@{header} {
    &_logo {
      width: 30vw;
    }
  }
}